using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace KbsUmlEditor
{
    class UMLPunt
    {
        private Point m_BeginPositie;
        public Point BeginPositie
        {
            get { return m_BeginPositie; }
            set { m_BeginPositie = value; }
        }
        private Point m_EindPositie;

        public Point EindPositie
        {
            get { return m_EindPositie; }
            set { m_EindPositie = value; }
        }
        

        public enum Type
        {
            association = 0,
            generalization = 1,
            composition = 2,
            aggregation = 3,
            normal = 4
        }

        public static UMLPunt.Type getType(string type)
        {
            UMLPunt.Type punt = new Type();
            switch (type)
            {
                case "association":
                    punt = UMLPunt.Type.association;
                    break;
                case "generalization":
                    punt = UMLPunt.Type.generalization;
                    break;
                case "composition":
                    punt = UMLPunt.Type.composition;
                    break;
                case "aggregation":
                    punt = UMLPunt.Type.aggregation;
                    break;
                case "normal":
                    punt = UMLPunt.Type.normal;
                    break;
                //default:
                //    return null;
                //    break;
            }

            return punt;

        }
    }
}
